﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RED_NET_Core.DAL;
using RED_NET_Core.Entity;
namespace RED_NET_Core.BLL
{
    public class ErrorInfo_BLL
    {
        #region[添加错误信息]
        /// <summary>
        /// 添加错误信息
        /// </summary>
        /// <param name="_error"></param>
        public static void AddErrorInfo(int uId,string  errorInfo,DateTime time)
        {
            ErrorInfo _error = new ErrorInfo();
            _error.UId = uId;
            _error.OccurTime = time;
            _error.Info = errorInfo;
            try
            {
                ErrorInfo_DAL.AddErrorInfo(_error);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        #endregion
    }
}
